--TEST--
CTPP Compile examples
--FILE--
<?php
	error_reporting(E_ERROR);

	ini_set("ctpp.arg_stack_size",       "10240");
	ini_set("ctpp.code_stack_size",      "10240");
	ini_set("ctpp.steps_limit",          "10240");
	ini_set("ctpp.cache_bytecode",       "0");
	ini_set("ctpp.max_functions",        "1024");

	// Create new class
	$T = ctpp_new();

	$tmpl = ctpp_parse_template($T, "tmpl/syntax-error.tmpl");
	if (!is_resource($tmpl))
	{
		$ErrorDescr = ctpp_get_last_error($T);
		printf("Error: 0x%08X(%s) at line %d, pos %d\n", $ErrorDescr["error_code"], $ErrorDescr["error_str"], $ErrorDescr["line"], $ErrorDescr["pos"]);
	}

?>
--EXPECT--
Error: 0x04000011(expected at least one space symbol) at line 2, pos 14

